package com.hzjy.api.vo;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * 短信登录
 */
public class BqPhoneLoginBody {
    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty("验证码")
    private String code;

    @NotBlank(message = "手机号不能为空")
    @Size(min = 11, max = 11, message = "手机号格式不正确")
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    @NotBlank(message = "验证码不能为空")
    @Size(min = 6, max = 6, message = "验证码错误")
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
